This notebook displays interactive heatmaps of single cell antibody derived tag data from plaque and PBMC from the same subject. The data has been UMI normalized and Z-scored - please see manuscript for additional information.
from clustergrammer2 import net
df = {}
net.load_file('../data/citeseq_adt_pbmc.txt')
df['pbmc'] = net.export_df()
print('pbmc', df['pbmc'].shape)
net.load_file('../data/citeseq_adt_plaque.txt')
df['plaque'] = net.export_df()
print('plaque', df['plaque'].shape)
net.load_file('../data/citeseq_adt_merge.txt')
df['merged'] = net.export_df()
print('pbmc and plaque', df['merged'].shape)
cat_colors = net.load_json_to_dict('../data/cite-seq_cat_colors.json')
net.set_cat_colors(cat_colors=cat_colors, axis='col', cat_index=1, cat_title='Tissue')
net.set_cat_colors(cat_colors=cat_colors, axis='col', cat_index=2, cat_title='Cell Type')
net.load_df(df['pbmc'])
net.widget()
net.load_df(df['plaque'])
net.widget()
net.load_df(df['merged'])
net.widget()